package com.milk.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.milk.entity.SignInReward;
import com.milk.mapper.SignInRewardMapper;
import com.milk.service.ISignInRewardService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 * 签到奖励表 服务实现类
 * </p>
 *
 * @author author
 * @since 2025-03-27
 */
@Service
public class SignInRewardServiceImpl extends ServiceImpl<SignInRewardMapper, SignInReward> implements ISignInRewardService {

    @Autowired
    private SignInRewardMapper signInRewardMapper;

    /**
     * 查询所有签到奖励表
     * @return
     */
    public List<SignInReward> selectAll() {
        return signInRewardMapper.selectList(new QueryWrapper<>());
    }
}
